<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>
<div id="chart" width="1000" height="1000"></div>
</body>
<script src="wecharts.js"></script>
<script>
	var data = {
		title: '销量统计',
		xAxis: {
			name: '月份',
			data: ['一月', '二月', '三月', '四月', '五月', '六月']
		},
		yAxis: {
			name: '销量(单位：万)'
		},
		series: [
			{
				data: [120, 200, 150, 80],
				type: 'line'
			}
		]
	}
	wecharts.init(document.getElementById('chart'))
	wecharts.setOptions(data)
</script>
</html>